import java.util.Scanner;

public class test3 {
    public static void main1(String[] args) {
        int a = 7;
        for (int j = 2; j < Math.sqrt(a); j++)
            if (a % j == 0) {
                System.out.println("不是素数");
            } else {
                System.out.println("是素数");
            }
    }

    public static void main2(String[] args) {
        int i = 2;
        for (i = 2; i <= 100; i++) {
            int j = 2;
            for (j = 2; j < Math.sqrt(i); j++)
                if (i % j == 0) {
                    break;
                }
            if (j > Math.sqrt(i)) {
                System.out.print(i+" ");
            }
        }
    }

    /*  for (int i=2;i<=100;i++)
      {
          int n=0;
          int j=2;
          for(j=2;j<Math.sqrt(i);j++)
          {

              if(i%j==0)
              {
                  n=1;
                  break;
              }

          }
          if(n==0) {
              System.out.println(i);
          }
      }*/
    public static void main3(String[] args) {
        for (int i = 1000; i <= 2000; i++) {
            if ((i % 4 == 0 && i % 100 != 0) || (i % 400 == 0)) {
                System.out.print(i+"  ");
            }
        }
    }

    public static void main4(String[] args) {
        int num = 123;
        while(num>0){
            System.out.println(num%10);
            num /=10;
        }
    }

    public static void main5(String[] args) {
        for(int i=1;i<100;i++) {
            int num=i;
            while(num>0){
                if(num%10==9) {
                    System.out.print(i+" ");
                    break;
                }
                num /=10;
            }
        }
    }

    public static void main6(String[] args) {
        for(int i=1;i<10;i++)
        {
            int j=1;
            for(j=1;j<=i;j++) {
                System.out.print(i+"*"+j+"="+i*j+"   ");
            }
            System.out.println();
        }
    }

    public static void main7(String[] args) {
        Scanner sc=new Scanner(System.in);
        String a= sc.nextLine();
        int b=sc.nextInt();
        double c=sc.nextDouble();
        System.out.println(a+b+c);
    }

    public static void main8(String[] args) {
        String b="123456";
        int c=3;
        while(c>0){
            Scanner sc=new Scanner(System.in);
            String a= sc.nextLine();
            if(a.equals(b)){
                System.out.println("密码正确");
                break;
            }else{
                c--;
                System.out.println("密码错误");
                System.out.println("还有"+c+"次机会");
            }
        }
    }

    public static void main9(String[] args) {
        int [] arr={1,2,3,4,5,6};
        int a= arr.length;
        int [] b=null;
        System.out.println(b);
    }

    public static void main(String[] args) {
        int a=39;
        for(int i=30;i>=0;i-=2){
            System.out.print(((a>>i)&1)+"  ");
        }
        System.out.println();
        for(int i=31;i>=1;i-=2){

            System.out.print(((a>>i)&1)+"  ");
        }
    }
}